package com.hy.study.schedule;

import com.hy.test.HelloWorldService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Order(value = 1)
public class TestXMLBeanRunner implements CommandLineRunner {
    @Resource
    private HelloWorldService helloWorldService;

    @Override
    public void run(String... arg0) {
        helloWorldService.hello();
    }
}